/*
 * @Description: 接口定义
 * @Autor: LiuGang
 * @Date: 2022-04-14 09:25:52
 * @LastEditors: LiuGang
 * @LastEditTime: 2022-12-27 16:27:54
 */
import request from '@/utils/request'

// list
export function getByTypeName(query, page) {
    return request({
        url: '/fileType/queryByTypeName',
        method: 'post',
        data: query,
    })
}
// add
export function insertType(query, page) {
    return request({
        url: '/fileType/insert',
        method: 'post',
        data: query,
    })
}
// update
export function updateType(query, page) {
    return request({
        url: '/fileType/update',
        method: 'post',
        data: query,
    })
}
// delete
export function deleteType(query, page) {
    return request({
        url: '/fileType/delete',
        method: 'post',
        data: query,
    })
}
// list
export function queryByFileName(query, page) {
    return request({
        url: '/policy/queryByFileName',
        method: 'post',
        data: query,
    })
}
// list
export function queryByDocumentClassification(query, page) {
    return request({
        url: '/policy/queryByDocumentClassification',
        method: 'post',
        data: query,
    })
}
// add
export function insertPolicy(query, page) {
    return request({
        url: '/policy/insert',
        method: 'post',
        data: query,
    })
}
// update
export function updatePolicy(query, page) {
    return request({
        url: '/policy/update',
        method: 'post',
        data: query,
    })
}
// 上传
export function updatePolicyFile(query, page) {
    return request({
        url: '/policy/uploadPolicyFile',
        method: 'post',
        data: query,
    })
}
// delete
export function deletePolicy(query, page) {
    return request({
        url: '/policy/delete',
        method: 'post',
        data: query,
    })
}

